package laan.data.requestcenter
{
    import flash.net.*;
	import flash.events.IEventDispatcher;

    public interface IRequestCenter extends IEventDispatcher
    {

        public function IRequestCenter();

        function releaseToken(token:String) : void;

        function set requestType(value:String) : void;

        function get delay() : uint;

        function set delay(value:uint) : void;

        function get requestType() : String;

        function releaseAll() : void;

        function get isRequesting() : Boolean;

        function addRequest(request:URLRequest, handler:Function, token:String = null, binary:Boolean = false) : void;

    }
}
